package com.hulk.ratel.persistence.entity

import java.util.Date
import com.baomidou.mybatisplus.annotations.TableField
import com.baomidou.mybatisplus.annotations.TableId
import com.baomidou.mybatisplus.enums.IdType
import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-08-29
 */
@TableName("t_payorg_info")
class TPayorgInfo : Model<TPayorgInfo>() {

    @TableId(value = "id", type = IdType.ID_WORKER)
    var id: Long? = null
    @TableField("org_code")
    var orgCode: String? = null
    /**
     * 与out_partner_code相同
     */
    @TableField("out_org_code")
    var outOrgCode: String? = null
    @TableField("org_name")
    var orgName: String? = null
    /**
     * Y-末端机构
            N-非末端机构
            负责生成二位码的为末端机构
     */
    @TableField("over_flag")
    var overFlag: String? = null
    /**
     * 01-1级
            02-2级
     */
    @TableField("org_grade")
    var orgGrade: String? = null
    @TableField("org_intro")
    var orgIntro: String? = null
    @TableField("group_code")
    var groupCode: String? = null
    /**
     * HTTP
            HTTPS
            TCP
            CXF
            TUXEDO
     */
    @TableField("network_protocol")
    var networkProtocol: String? = null
    var ip: String? = null
    var port: Int? = null
    var uri: String? = null
    /**
     * XML
            JSON
     */
    @TableField("serialization_mode")
    var serializationMode: String? = null
    /**
     * 00 未启用
            01 启用
            02 停用
            99 注销
     */
    var status: String? = null
    @TableField("start_date")
    var startDate: Date? = null
    @TableField("expiry_date")
    var expiryDate: Date? = null
    @TableField("contact_name")
    var contactName: String? = null
    @TableField("contact_mobile")
    var contactMobile: String? = null
    @TableField("contact_phone")
    var contactPhone: String? = null
    @TableField("contact_fax")
    var contactFax: String? = null
    @TableField("f_linkman_name")
    var fLinkmanName: String? = null
    @TableField("f_linkman_phone")
    var fLinkmanPhone: String? = null
    @TableField("f_linkman_fax")
    var fLinkmanFax: String? = null
    @TableField("f_linkman_email")
    var fLinkmanEmail: String? = null
    @TableField("contact_email")
    var contactEmail: String? = null
    var remark: String? = null
    @TableField("created_by")
    var createdBy: String? = null
    @TableField("created_time")
    var createdTime: Date? = null
    @TableField("audited_time")
    var auditedTime: Date? = null
    /**
     * N-未审核
            Y-已审核
            U-已修改
     */
    @TableField("audited_flag")
    var auditedFlag: String? = null
    @TableField("audited_by")
    var auditedBy: String? = null
    @TableField("updated_by")
    var updatedBy: String? = null
    @TableField("updated_time")
    var updatedTime: Date? = null
    @TableField("archived_time")
    var archivedTime: Date? = null
    /**
     * N-未归档
            Y-已归档
     */
    @TableField("archived_flag")
    var archivedFlag: String? = null
    @TableField("ori_id")
    var oriId: String? = null
    @TableField("tenant_id")
    var tenantId: String? = null
    @TableField("lock_version")
    var lockVersion: Long? = null
    var rsv1: String? = null
    var rsv2: String? = null
    var rsv3: String? = null


    override fun pkVal(): Serializable? {
        return id
    }

    override fun toString(): String {
        return "TPayorgInfo{" +
        ", id=" + id +
        ", orgCode=" + orgCode +
        ", outOrgCode=" + outOrgCode +
        ", orgName=" + orgName +
        ", overFlag=" + overFlag +
        ", orgGrade=" + orgGrade +
        ", orgIntro=" + orgIntro +
        ", groupCode=" + groupCode +
        ", networkProtocol=" + networkProtocol +
        ", ip=" + ip +
        ", port=" + port +
        ", uri=" + uri +
        ", serializationMode=" + serializationMode +
        ", status=" + status +
        ", startDate=" + startDate +
        ", expiryDate=" + expiryDate +
        ", contactName=" + contactName +
        ", contactMobile=" + contactMobile +
        ", contactPhone=" + contactPhone +
        ", contactFax=" + contactFax +
        ", fLinkmanName=" + fLinkmanName +
        ", fLinkmanPhone=" + fLinkmanPhone +
        ", fLinkmanFax=" + fLinkmanFax +
        ", fLinkmanEmail=" + fLinkmanEmail +
        ", contactEmail=" + contactEmail +
        ", remark=" + remark +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", auditedTime=" + auditedTime +
        ", auditedFlag=" + auditedFlag +
        ", auditedBy=" + auditedBy +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", archivedTime=" + archivedTime +
        ", archivedFlag=" + archivedFlag +
        ", oriId=" + oriId +
        ", tenantId=" + tenantId +
        ", lockVersion=" + lockVersion +
        ", rsv1=" + rsv1 +
        ", rsv2=" + rsv2 +
        ", rsv3=" + rsv3 +
        "}"
    }
}
